<template>
    <div>
        <m v-model="val"></m>

        我是值：{{val}}


        <div>
            {{arr}}
            <button @click="handleArr">点我</button>
        </div>
    </div>
</template>

<script>
    import m from '../components/model/index.vue'

    export default {
        components: {
            m
        },
        data() {
            return {
                val: 1,
                arr: [1, 2, 3]
            }
        },
        methods: {
            handleArr() {
                this.$set(this.arr, '3', 4)
                this.arr[3] = 4
            }
        }
    }
</script>

<style lang='less'>

</style>
